<template>
  <div>子组件</div>
  <hr />
  <h1>{{msg}}</h1>
</template>


<script setup>
import { ref } from 'vue'

defineProps({
  msg: {
    type: String,
    default: '11111'
  }
})
//子传父
let num = ref(10)
let num1 = ref(100)
const emit = defineEmits(['fn', 'fn2'])
emit('fn', num)
emit('fn2', num1)
</script>

<style>
</style>